package pe.com.bbva.mantenimiento.bo;

import java.util.List;

import pe.com.bbva.mantenimiento.domain.Bin;
import pe.com.stefanini.core.bo.Grid;
import pe.com.stefanini.core.exceptions.BOException;
import pe.com.stefanini.core.exceptions.DAOException;

public interface BinBO {
	public List<Bin> findBins(Bin bin)throws BOException, DAOException ;
	public Bin findById(Long id) throws BOException, DAOException;
	public Bin findByNombreBin(String codigo) throws BOException;
	public void save(Bin bin ,String codigoAntiguo) throws BOException, DAOException;
	public void delete(Bin bin)throws BOException;
	@SuppressWarnings("rawtypes")
	public void deleteLog(Class bin, Long id)throws BOException;
	public Grid<Bin> findToGrid(Bin bin,String order, int page, int rows)
	throws BOException, DAOException;
	public List<Bin> findParamListByDescrip(String descripcion) throws BOException;
	public void update(Bin bin) throws BOException;
}